﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Script.Serialization;
using ECCIT.Business.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class MemberModel : BaseModel
    {
        public int? LanguageID { get; set; }
        public int? ID { get; set; }
        public string AccountName { get; set; }
        [ScriptIgnore]
        public string Password { get; set; }
        public string Name { get; set; }
        public string Type { get; set; }
        public string Mobile { get; set; }
        public DateTime LastLoginTime { get; set; }
        public string RegisterType { get; set; }
        public int? State { get; set; }
        public string Email { get; set; }
        public string Birthday { get; set; }
        public string StudyAbroad { get; set; }
        public string IELTS { get; set; }
        public string ArtsAndCulture { get; set; }
        public string Sina { get; set; }
        public string Sohu { get; set; }
        public string TengXun { get; set; }
        public string SinaWeibo { get; set; }
        public string TengXunWeibo { get; set; }
        public string KaiXin { get; set; }
        public string DouBan { get; set; }
        public string RenRen { get; set; }
        public string Google { get; set; }
        public string Baidu { get; set; }
        public string Bing { get; set; }
        public string OfflineEvents { get; set; }
        public string NewsPaper { get; set; }
        public string Outdoor { get; set; }
        public string Taxi { get; set; }
        public string Metro { get; set; }
        public string BBS { get; set; }
        public string TV { get; set; }
        public string Recommendation { get; set; }
        public string OtherChannels { get; set; }
        public string MemberImg { get; set; }
        public DateTime InsertTime { get; set; }
        /*
         * 代码添加：
         * 添加日期：2012-03-14
         * 添加人员：刘扬
         * 添加原因：向会员基础数据表增加个人活动日历提醒相关字段
         * */
        public bool? ReminderByEmail { get; set; }
        public string ReminderEmail { get; set; }
        public bool? ReminderByMobile { get; set; }
        public string ReminderMobile { get; set; }
        public bool? ReminderAllEvents { get; set; }
        /*
        * 代码添加：
        * 添加日期：2012-03-15
        * 添加人员：陈鹏
        * 添加原因：向会员基础数据表增加个密码找回时保存Guid字段
        * */

        public string ForgetPwrdM { get; set; }
        
        /// <summary>
        /// 增加省份和城市 李学明 2012-3-29
        /// </summary>
        public string City { get; set; }
        public string Provice { get; set; }

        /// <summary>
        /// 2012 3-31  手机是否对放外开 李学明
        /// </summary>     
        public bool? MOBLIEISME { get; set; }
        /// <summary>
        /// 生日是否对外开放
        /// </summary>
        public bool? BIRTHDAYISME { get; set; }
        /// <summary>
        /// 喜欢的艺术家
        /// </summary>
        public string FavoriteArtist { get; set; }

        public bool CheckPw { get; set; }

        /// <summary>
        /// 2012-6-7 apptoken
        /// </summary>
        public string AppToken { get; set; }



        public MemberModel() { }

        public MemberModel(int? langID, int? id, string accountName, string password, string name, 
            string type, string mobile, DateTime lastLoginTime, string registerType, int? state, string email, string birthday,
            string studyAbroad, string ielts, string artsAndCulture, string sina, string sohu, string tengXun, string sinaWeibo,
            string tengXunWeibo, string kaixin, string douBan, string renren, string google, string baidu, string bing,
            string offlineEvents, string newsPaper, string outdoor, string taxi, string metro, string bbs, string tv,
            string recommendation, string otherChannels, string memberImg, DateTime insertTime,
            bool reminderByEmail, string reminderEmail, bool reminderByMobile, string reminderMobile, bool reminderAllEvents,
            string forgetPwd,string city,string provice,bool?MOBLIEISme,bool?BIRTHDAYISme,string favoriteArtist)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.AccountName = accountName;
            this.Password = password;
            this.Name = name;
            this.Type = type;
            this.Mobile = mobile;
            this.LastLoginTime = lastLoginTime;
            this.RegisterType = registerType;
            this.State = state;
            this.Email = email;
            this.Birthday = birthday;
            this.StudyAbroad = studyAbroad;
            this.IELTS = ielts;
            this.ArtsAndCulture = artsAndCulture;
            this.Sina = sina;
            this.Sohu = sohu;
            this.TengXun = tengXun;
            this.SinaWeibo = sinaWeibo;
            this.TengXunWeibo = tengXunWeibo;
            this.KaiXin = kaixin;
            this.DouBan = douBan;
            this.RenRen = renren;
            this.Google = google;
            this.Baidu = baidu;
            this.Bing = bing;
            this.OfflineEvents = offlineEvents;
            this.NewsPaper = newsPaper;
            this.Outdoor = outdoor;
            this.Taxi = taxi;
            this.Metro = metro;
            this.BBS = bbs;
            this.TV = tv;
            this.Recommendation = recommendation;
            this.OtherChannels = otherChannels;
            this.MemberImg = memberImg;
            this.InsertTime = insertTime;
            this.ReminderByEmail = reminderByEmail;
            this.ReminderEmail = reminderEmail;
            this.ReminderByMobile = reminderByMobile;
            this.ReminderMobile = reminderMobile;
            this.ReminderAllEvents = reminderAllEvents;
            this.ForgetPwrdM = forgetPwd;
            this.City = city;
            this.Provice = provice;
            this.MOBLIEISME = MOBLIEISme;
            this.BIRTHDAYISME = BIRTHDAYISme;
            this.FavoriteArtist = favoriteArtist;


        }
    }
}
